<template>
  <!--基础组件-输入框 -->

  <v-container>
    <v-row>
      <v-col cols="6"
             v-for="item in items"
             :key="item.index">
        <v-text-field :label="item.text"
                      v-model="item.value"
                      dense
                      outlined>
        </v-text-field>
      </v-col>
    </v-row>

  </v-container>

</template>

<script>
export default {
  props: {
    value: Array,
    text: String,
  },
  
  computed: {
    items: {
      set(data) {
        this.$emit('input', data);
        console.log(data.value);
      },
      get() {
        return this.value;
      },
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped></style>>
